package com.itheima.tlias.mapper;

import com.github.pagehelper.Page;
import com.itheima.tlias.dto.AddSubjectDto;
import com.itheima.tlias.dto.CheckSubjectDto;
import com.itheima.tlias.entity.Subject;
import com.itheima.tlias.vo.SubjectVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SubjectMapper {
    Page<SubjectVo> subjectPage(CheckSubjectDto dto);

    void add(Subject subject);

    SubjectVo selectById(Integer id);

    void updateSubject(Subject subject);

    void deleteByIds(List<Integer> ids);

    Subject selectByName(AddSubjectDto dto);
}
